<?php

namespace App\Libs;

use Illuminate\Contracts\Hashing\Hasher;
// use Illuminate\Hashing\AbstractHasher;
// class NoHasher extends AbstractHasher implements Hasher
 class NoHasher implements Hasher
{
    /**
     * Get information about the given hashed value.
     *
     * @param  string  $hashedValue
     * @return array
     */
    public function info($hashedValue)
    {
        return [];
    }

    public function check($value, $hashedValue, array $options = [])
    {

        return $this->make($value) === $hashedValue;
    }

    public function needsRehash($hashedValue, array $options = [])
    {
        return false;
    }

    public function make($value, array $options = [])
    {
        return $value;  //这里写你自定义的加密方法，这里不加密
    }
}
